import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()

// 积分设置查询
export function queryByCondition (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/points-settings/queryByCondition',
    method: 'get',
    params: data
  })
}

// 删除积分设置
export function deleteById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/points-settings/deleteById/${data.id}`,
    method: 'get',
    params: data
  })
}

// 添加积分设置
export function add (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/points-settings/add',
    method: 'post',
    data
  })
}

// 编辑积分设置
export function edit (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/points-settings/edit',
    method: 'post',
    data
  })
}
